
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Org

	/// <summary>
	/// Org string for NHibernate mapped table 'org'.
	/// </summary>
	public class Org
		{
		#region Member Variables
		
		protected int _org_id;
		protected string _org_name;
		protected string _org_desc;
		protected byte[] _org_logo_big;
		protected byte[] _org_logo_small;
		protected short _org_type;
		protected int _org_cat;
		protected short _org_del;
		protected short _org_index;
		protected DateTime _org_date;
        protected int _org_count_art;
        protected int _org_count_usr;
        protected string _org_prefix;

		#endregion

		#region Constructors

		public Org() { }

        public Org(string org_name, string org_desc, byte[] org_logo_big, byte[] org_logo_small, short org_type, int org_cat, short org_del, short org_index, DateTime org_date,string org_prefix, int org_count_art, int org_count_usr)
		{
			this._org_name = org_name;
			this._org_desc = org_desc;
			this._org_logo_big = org_logo_big;
			this._org_logo_small = org_logo_small;
			this._org_type = org_type;
			this._org_cat = org_cat;
			this._org_del = org_del;
			this._org_index = org_index;
			this._org_date = org_date;
            this._org_prefix = org_prefix;
            this._org_count_art = org_count_art;
            this._org_count_usr = org_count_usr;

		}

		#endregion

		#region Public Properties

		public virtual int Org_id
		{
			get {return _org_id;}
			set {_org_id = value;}
		}

		public virtual string Org_name
		{
			get { return _org_name; }
			set
			{
				if ( value != null && value.Length > 240)
					throw new ArgumentOutOfRangeException("Invalid value for Org_name", value, value.ToString());
				_org_name = value;
			}
		}

		public virtual string Org_desc
		{
			get { return _org_desc; }
			set { _org_desc = value; }
		}

		public virtual byte[] Org_logo_big
		{
			get { return _org_logo_big; }
			set { _org_logo_big = value; }
		}

		public virtual byte[] Org_logo_small
		{
			get { return _org_logo_small; }
			set { _org_logo_small = value; }
		}

		public virtual short Org_type
		{
			get { return _org_type; }
			set { _org_type = value; }
		}

		public virtual int Org_cat
		{
			get { return _org_cat; }
			set { _org_cat = value; }
		}

		public virtual short Org_del
		{
			get { return _org_del; }
			set { _org_del = value; }
		}

		public virtual short Org_index
		{
			get { return _org_index; }
			set { _org_index = value; }
		}

		public virtual DateTime Org_date
		{
			get { return _org_date; }
			set { _org_date = value; }
		}

        public virtual int Org_count_art
        {
            get { return _org_count_art; }
            set { _org_count_art = value; }
        }

        public virtual int Org_count_usr
        {
            get { return _org_count_usr; }
            set { _org_count_usr = value; }
        }

        public virtual string Org_prefix
        {
            get { return _org_prefix; }
            set
            {
                if (value != null && value.Length > 3)
                    throw new ArgumentOutOfRangeException("Invalid value for Org_prefix", value, value.ToString());
                _org_prefix = value;
            }
        }
        
		#endregion
		
        
	}

	#endregion
}
